
package com.huaweicloud.haydn.delivercore.agent.dto.haydn;

import java.util.List;

import com.huaweicloud.haydn.delivercore.agent.common.DbTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能描述: 表内容一致性对比所需的字段
 *
 * @since 2023-03-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContentConsistencyConfigDto {

    @ApiModelProperty(value = "表内容一致性检测表中的字段映射")
    private List<MonitoringFieldMappingConfigDto> monitoringFieldMappings;

    @ApiModelProperty(value = "过滤比对数据的SQL语句中Where条件")
    private String filterSqlStatement;

    @ApiModelProperty(value = "一致性对比时抽取轮次")
    private int extractBatch;

    @ApiModelProperty(value = "一致性对比时单论抽取数据行数")
    private int singleExtractSize;

    @ApiModelProperty(value = "源端数据库类型")
    private DbTypeEnum sourceDbType;

    @ApiModelProperty(value = "目的端数据库类型")
    private DbTypeEnum targetDbType;

}
